package com.ljh.cloudmusic.mapper;

import com.ljh.cloudmusic.model.Music;
import com.ljh.cloudmusic.model.MusicWithFavorite;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * @author: Themberfue
 * @date: 2025/3/8 15:27
 * @description:
 */
@Mapper
public interface MusicMapper {
    Integer insertMusic(Music music);
    Music selectMusicByTitleAndArtist(String title, String artist);
    Integer deleteMusicById(Integer id);
    List<Music> selectMusicById(List<Integer> ids);
    List<MusicWithFavorite> selectAllMusic(Integer userId);
    List<MusicWithFavorite> selectMusicByName(Integer userId, String musicName);
    Boolean selectMusicByUUID(Integer uuid);
    Set<String> selectAllTitlesAndArtists();
}
